package com.console.operations.planmgr;

import com.common.test.OperationBase;
import com.common.test.UITestBase;
import com.console.pages.LinkPage;

	/**
		@author 王嘉犇
		@name 钜宝盆后台点击理财计划发布链接
		@type 动作类
	 */

public class ClickFinancePlanReleaseLink extends OperationBase {

	public ClickFinancePlanReleaseLink(UITestBase tb){
		super(tb);
	}
	
	public void clickLink() throws Exception{
		switchToDefaultContent();
		LinkPage lp = new LinkPage(tb);
		//直到“理财计划管理”链接可见，超时就报错
		waitForElementDisplayed(lp.financePlanManageLnk);
		//点击“理财计划管理”链接
		lp.financePlanManageLnk.click();
		//直到“理财计划发布”链接存在，超时就报错
		waitForElementExist(lp.financePlanReleaseLnk);
		//防止页面刷新，到刷新完后该控件才可点击
		elementToBeClickable(lp.financePlanReleaseLnk);
		//点击“理财计划发布”链接
		lp.financePlanReleaseLnk.click();
	}
}
